-
Notifications
You must be signed in to change notification settings - Fork 124
Configurable startup timeout for supervisor; better exit detection #10042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
E2E Tests 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! One suggestion to change comments/log messages with "10 seconds" to instead refer to the startupTimeout setting
|
|
||
| // ECONNREFUSED (for TCP) and ENOENT (for sockets) are normal | ||
| // conditions during startup; the server isn't ready yet. Keep | ||
| // trying up to 10 seconds from the time we got a process ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few places where "10 seconds" is referenced, including an error message Timed out waiting for connection file to be ` + `created at ${connectionFile} after 10 seconds Shall we change this to "startupTimeout seconds"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks, I should have fixed those up! Addressed in 96ec61f.
| // Consult configuration to see if we should show this terminal | ||
| const config = vscode.workspace.getConfiguration('kernelSupervisor'); | ||
| const showTerminal = config.get<boolean>('showTerminal', false); | ||
| const startupTimeout = config.get<number>('startupTimeout', 10) * 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be useful to log these config settings to the output pane?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Done in 96ec61f.
This change does not fix any known problems, but is intended to help us get better diagnostics on issues like #8000 wherein the supervisor appears to be timing out at startup. Specifically, it seems possible that the supervisor is actually exited in these cases or is taking extra long to start, so: